package org.jeecg.modules.demo.houseOrder.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.houseOrder.entity.FyCost;
import org.jeecg.modules.demo.houseOrder.mapper.FyCostMapper;
import org.jeecg.modules.demo.houseOrder.service.IFyCostService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 费用单
 * @Author: jeecg-boot
 * @Date:   2021-12-13
 * @Version: V1.0
 */
@Service
public class FyCostServiceImpl extends ServiceImpl<FyCostMapper, FyCost> implements IFyCostService {
	
	@Autowired
	private FyCostMapper fyCostMapper;
	
	@Override
	public List<FyCost> selectByMainId(String mainId) {
		return fyCostMapper.selectByMainId(mainId);
	}


	@Override
	public IPage<FyCost> getListByOrder(Page<FyCost> page, FyCost cost){
		return page.setRecords(fyCostMapper.getListByOrder(page,cost));
	}
}
